package com.hz.qs.dao;

import com.hz.qs.model.AbWorkerdict;
import com.hz.qs.model.UserInfo;
import com.hz.qs.model.YiActiveRoom;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserInfoDao extends Mapper<UserInfo> {

    List<UserInfo> selectLoginByNameAndPw(@Param("userName") String userName,@Param("password") String password);

    List<UserInfo> selectAllData();

    int edit(@Param("user") UserInfo userInfo);

    List<AbWorkerdict> getDeptInfoByUser(@Param("userCode") String userCode);

    List<YiActiveRoom> getActiveRoomByDocId(@Param("userName") String userName,@Param("firstDate") String firstDate,@Param("endDate") String endDate);

    void insertActiveRoom(@Param("user") UserInfo userInfo);

    void updateActiveRoom(@Param("user") UserInfo userInfo);
}
